package com.nexgo.payment.databases;

import org.greenrobot.greendao.annotation.Entity;
import org.greenrobot.greendao.annotation.Generated;
import org.greenrobot.greendao.annotation.Id;
import org.greenrobot.greendao.annotation.Property;

/**
 * 电子签名数据表：凭证号作为唯一标识
 *
 * @author 谭忠扬-YuriTam //xiaox 2017/9/11 下午6:47
 * @time 2017年08月16日
 */
@Entity(nameInDb = "SIGNATURE")
public class Signature {
    @Id(autoincrement = true)
    private Long id;
    /**
     * 凭证号
     */
    @Property(nameInDb = "TRACE_NUM")
    private String traceNum;
    /**
     * 手机号
     */
    @Property(nameInDb = "PHONE")
    private String phone;
    /**
     * 电子签名数据
     */
    @Property(nameInDb = "SIGNATURE")
    private String signatureData;
    /**
     * 交易是否脱机
     */
    @Property(nameInDb = "IS_OFFLINE")
    private boolean isOffline;
    /**
     * 本笔签名数据是否已经被上送过，不管成功还是失败
     */
    @Property(nameInDb = "IS_EVER_UPLOAD")
    private boolean isEverUpload;
    /**
     * 本笔签名数据是否已经被成功上送
     */
    @Property(nameInDb = "IS_UPLOAD_SUCC")
    private boolean isUploadSuccessful;
    @Generated(hash = 1070209476)
    public Signature(Long id, String traceNum, String phone, String signatureData,
            boolean isOffline, boolean isEverUpload, boolean isUploadSuccessful) {
        this.id = id;
        this.traceNum = traceNum;
        this.phone = phone;
        this.signatureData = signatureData;
        this.isOffline = isOffline;
        this.isEverUpload = isEverUpload;
        this.isUploadSuccessful = isUploadSuccessful;
    }
    @Generated(hash = 470960765)
    public Signature() {
    }
    public Long getId() {
        return this.id;
    }
    public void setId(Long id) {
        this.id = id;
    }
    public String getTraceNum() {
        return this.traceNum;
    }
    public void setTraceNum(String traceNum) {
        this.traceNum = traceNum;
    }
    public String getPhone() {
        return this.phone;
    }
    public void setPhone(String phone) {
        this.phone = phone;
    }
    public String getSignatureData() {
        return this.signatureData;
    }
    public void setSignatureData(String signatureData) {
        this.signatureData = signatureData;
    }
    public boolean getIsOffline() {
        return this.isOffline;
    }
    public void setIsOffline(boolean isOffline) {
        this.isOffline = isOffline;
    }
    public boolean getIsEverUpload() {
        return this.isEverUpload;
    }
    public void setIsEverUpload(boolean isEverUpload) {
        this.isEverUpload = isEverUpload;
    }
    public boolean getIsUploadSuccessful() {
        return this.isUploadSuccessful;
    }
    public void setIsUploadSuccessful(boolean isUploadSuccessful) {
        this.isUploadSuccessful = isUploadSuccessful;
    }
    
}
